/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.model.account;

import java.util.List;

import com.unis.model.BaseModel;

/**
 * 系统用户: 基于Apache Shiro权限模型
 * 
 * @author CSJ (email:raulcsj@163.com)
 * @since 2012-11-26
 */
public class SysUser extends BaseModel {
    private static final long serialVersionUID = 1L;

    /****************************************
     * 用户基本信息项
     ****************************************/
    private String userId = "";
    private String username = "";
    private String password = "";
    // Encrypt salt(default:SHA-512)
    private String salt = "";
    // :TODO may be extral params
    // 身份证号
    private String idNo = "";
    // 警号
    private String policeNo = "";
    // 部门
    private String dept = "";
    // 用户类型
    private String userType = "";
    // 手机
    private String mobile = "";
    // 办公室电话
    private String tel = "";
    // 自定义图标(ztree)
    private String icon = "";

    /****************************************
     * 角色列表
     ****************************************/
    private List<SysRole> sysRoles = null;

    /****************************************
     * JavaBean Specify setter & getter
     ****************************************/
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getPoliceNo() {
        return policeNo;
    }

    public void setPoliceNo(String policeNo) {
        this.policeNo = policeNo;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public List<SysRole> getSysRoles() {
        return sysRoles;
    }

    public void setSysRoles(List<SysRole> sysRoles) {
        this.sysRoles = sysRoles;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

}
